<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Excel 导入</title>
</head>
<body>
<h2>上传 Excel 文件</h2>
<form method="POST" action="/system/DataImport/upload" enctype="multipart/form-data">
    <input type="file" name="file" accept=".xlsx, .xls"/>
    <button type="submit">上传</button>
</form>

<!-- 显示错误信息 -->
<div th:if="${error}" style="color: red;">
    <p th:text="${error}"></p>
</div>

<!-- 显示成功信息 -->
<div th:if="${message}" style="color: green;">
    <p th:text="${message}"></p>
</div>
</body>
</html>